package com.run.guifeng.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;


@Data
@TableName("guifeng_mall_goods_info")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class GoodsInfo extends BaseEntity {
    @TableId(value="id",type= IdType.AUTO)
    private Integer id;

    @TableField(value="goods_intro",exist=true)
    private String goodsIntro;

    @TableField(value="goods_name",exist=true)
    private String goodsName;

    @TableField(value="goods_category_id",exist=true)
    private Integer goodsCategoryId;

    @TableField(value="goods_cover_img",exist=true)
    private String goodsCoverImg;

    @TableField(value="goods_carousel",exist=true)
    private String carousel;

    @TableField(value="original_price",exist=true)
    private Double originalPrice;

    @TableField(value="selling_price",exist=true)
    private Double sellingPrice;

    @TableField(value="goods_detail",exist=true)
    private String detail;

    /**
     * 库存数量
     */
    @TableField(value="stock_num",exist=true)
    private Integer stockNum;

    @TableField(value="tag",exist=true)
    private String tag;

    @TableField(value="goods_sell_status",exist=true)
    private Integer status;

    @TableField(value="create_user",exist=true)
    private Integer createUser;

    @TableField(value="update_user",exist=true)
    private Integer updateUser;

    /*@TableField(value="user_name",exist=true)
    private Integer userName;

    @TableField(value="user_phone",exist=true)
    private String userPhone;

    @TableField(value="user_address",exist=true)
    private String userAddress;*/

}
